package top.infopub.mgr.cap.service;

import com.github.pagehelper.Page;
import top.infopub.dto.cap.RepaymentScheduleDto;
import top.infopub.mgr.common.vo.RspVo;
import top.infopub.model.cap.RepaymentSchedule;
import top.infopub.model.cap.RepaymentScheduleSublist;
import top.infopub.security.vo.AuthorizationVO;

import java.util.List;

/**
 * @Author Warking
 * @Date 2021/5/24 10:33
 * @Version 1.0  还款计划
 */
public interface RepaymentScheduleService {
    /*还款计划列表接口*/
    Page<RepaymentSchedule> selectPage(Page<RepaymentSchedule> page, RepaymentSchedule repaymentSchedule);
    /*查询主表数据 根据ID*/
    RepaymentSchedule findById(String id);
    /*查询详情数据 参数ID*/
    RepaymentScheduleDto queryDetail(String id);

    RspVo queryDetailByRepay(String id);

    RspVo saveAll(AuthorizationVO userDtl, String bodyStr, Integer submitType, RepaymentSchedule repaymentSchedule, List<RepaymentScheduleSublist> sublists);
}
